|
OFFSET SPRITE
This command will shift the position of the drawn image without affecting the coordinate of the specified sprite.
OFFSET SPRITE Sprite Number, XOffset, YOffset
Sprite Number
Integer
The sprite number
XOffset
Integer
The command will shift the position of the drawn image without affecting the coordinate of the specified sprite on the x
YOffset
Integer
The command will shift the position of the drawn image without affecting the coordinate of the specified sprite on the y
This command does not return a value.
You can use this command to change the visible sprite in relation to the coordinates you use to position it. The parameters should be specified using integer values.
cls
load image "man.bmp",1
sprite 1,100,100,1
wait 1000*8
offset sprite 1,sprite width(1)/2,,sprite height(1)/2
do
loop
end
SPRITE Commands Menu
Index
|